package com.design.factory;

public class SimpleFactory {
    public IBean get(IFactory.Type type) {
        switch (type) {
            case A:
                return new IBean.BeanA();
            case B:
                return new IBean.BeanB();
            default:
                return null;
        }
    }
}
